| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | var fs = require('fs') |
||
| 6 | var server = dnode(function (remote, conn) { |
||
| 7 | this.render = function (name, source, parameters, cb) { |
||
| 8 | eval(source); |
||
| 9 | parameters = eval("(function (){" + parameters + "}());"); |
||
| 10 | cb(window.Twig.render(eval(name), parameters)); |
||
| 11 | }; |
||
| 12 | this.exit = function (cb) { |
||
| 13 | cb(); |
||
| 14 | setTimeout(function() { |
||
| 15 | process.exit(0); |
||
| 16 | }, 100); |
||
| 17 | }; |
||
| 18 | }); |
||
| 19 | server.listen(7070); |
||
| 20 |